<div class="title">Harga Sewa - Tambah</div>
<hr />

<?php
    if(isset($this->error))
    {
        $buttons = '$( "#error" ).dialog({
                        modal: true,
			buttons: {
				Yes: function() {
					window.location.href = base;
				},
                                No: function() {
					$( this ).dialog( "close" );
				},
			}
		});';
        $this->jQuery()->addOnLoad($buttons);
        echo $this->dialogContainer('error', $this->error, '', array('title' => 'Terjadi Kesalahan'));
    }
?>

<form method="post" action="<?=$this->url();?>">
<?= $this->form->getElement('daya_kva'); ?>
<div class="container">
    <div class="title">Harga Tanpa Bahan Bakar</div>
    <hr />
    <?= $this->form->getElement('harian'); ?>
    <?= $this->form->getElement('mingguan'); ?>
    <?= $this->form->getElement('bulanan'); ?>
</div>
<div class="container">
    <div class="title">Harga Dengan Bahan Bakar</div>
    <hr />
    <?= $this->form->getElement('harian_bbm'); ?>
    <?= $this->form->getElement('mingguan_bbm'); ?>
    <?= $this->form->getElement('bulanan_bbm'); ?>
</div>
    <div class="submitGenset">
        <?= $this->submit->removeDecorator('DtDdWrapper'); ?>
        <?= $this->batal->removeDecorator('DtDdWrapper'); ?>
    </div>
</form>
<?php $this->jQuery()->addJavascriptFile($this->baseUrl().'/content/js/event.js');?>